:root {
    --parchment: #0f140f;
    --parchment-dark: #080c08;
    --ink: #d4d9d0;
    
    /* Couleurs Ventriloque - palette forêt obscure encore plus sombre */
    --ventriloque: #2d5a3d;
    --ventriloque-light: #3d7a4d;
    --ventriloque-dark: #1d3a2d;
    --shadow: #0a1f0f;
    --shadow-dark: #050f08;
    --accent: #5a8f6a;
    --accent-dark: #3d5f4d;
    --moss: #4a6b4a;
    --bark: #3d2d1f;
    --amber: #d4a574;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background-color: var(--parchment);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(45, 90, 61, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(58, 79, 58, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 0%, rgba(29, 58, 45, 0.05) 0%, transparent 40%);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.7;
}

/* Texture de parchemin */
.parchment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(45, 90, 61, 0.03) 2px,
            rgba(45, 90, 61, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* Bouton retour */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 12px 20px;
    background: rgba(15, 20, 15, 0.9);
    border: 2px solid var(--ventriloque);
    color: var(--accent);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.back-button:hover {
    background: var(--ventriloque);
    color: #d4d9d0;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.6);
}

/* Section Hero */
.hero-section {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, 
        rgba(45, 90, 61, 0.15) 0%, 
        transparent 100%);
}

.hero-image {
    flex: 0 0 400px;
    animation: fadeInLeft 1s ease-out;
    padding: 10px;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.2), rgba(29, 58, 45, 0.3));
    border-radius: 16px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 
        0 10px 40px rgba(10, 31, 15, 0.8),
        0 0 0 4px var(--ventriloque),
        0 0 0 8px rgba(45, 90, 61, 0.4);
    border: 4px solid rgba(90, 143, 106, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 
        0 15px 50px rgba(10, 31, 15, 0.9),
        0 0 0 4px var(--ventriloque-light),
        0 0 0 8px rgba(45, 90, 61, 0.6);
}

.hero-content {
    flex: 1;
    animation: fadeInRight 1s ease-out;
}

.class-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(10, 31, 15, 0.8);
}

.class-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--ink);
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 4px solid var(--ventriloque);
}

.class-type {
    font-size: 1.1rem;
    color: var(--accent-dark);
    font-weight: 600;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 80px;
    position: relative;
    z-index: 2;
}

/* Sections */
.section {
    margin-bottom: 60px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--ventriloque);
    letter-spacing: 2px;
}

.subsection-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 40px 0 20px;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--ink);
}

.interactive-hint {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.25), rgba(29, 58, 45, 0.25));
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    margin-bottom: 30px;
    font-size: 1rem;
    color: var(--ink);
    animation: pulse-hint 2s ease-in-out infinite;
}

@keyframes pulse-hint {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(90, 143, 106, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(90, 143, 106, 0);
    }
}

/* Boîte de contenu */
.content-box {
    background: rgba(10, 15, 10, 0.7);
    padding: 30px;
    border-left: 4px solid var(--ventriloque);
    border-radius: 8px;
    border: 1px solid rgba(45, 90, 61, 0.4);
}

.content-box p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.content-box p:last-child {
    margin-bottom: 0;
}

.content-box .subsection {
    background: rgba(45, 90, 61, 0.15);
    padding: 20px;
    margin: 15px 0;
    border-radius: 6px;
    border-left: 3px solid var(--ventriloque);
}

.content-box .subsection h4 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.content-box .subsection ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.content-box .subsection li {
    padding: 6px 0 6px 20px;
    position: relative;
}

.content-box .subsection li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--ventriloque);
    font-weight: bold;
}

.highlight-box {
    background: rgba(45, 90, 61, 0.2);
    padding: 20px;
    border-radius: 6px;
    border: 2px solid var(--ventriloque);
    margin-top: 20px;
}

.highlight-box p {
    margin: 0;
}

/* Citation de Maya Bella */
.maya-bella-quote {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.2), rgba(29, 58, 45, 0.15));
    padding: 30px;
    margin-bottom: 35px;
    border-radius: 8px;
    border: 2px solid var(--ventriloque);
    box-shadow: inset 0 0 20px rgba(10, 31, 15, 0.3);
}

.maya-bella-quote h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.maya-bella-quote p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--ink);
}

.maya-bella-quote p em {
    color: rgba(168, 195, 176, 0.8);
    font-style: italic;
    display: block;
    margin: 8px 0;
}

.maya-bella-quote p:last-child {
    margin-bottom: 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent);
}

/* Grille de statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.stat-category {
    background: rgba(10, 15, 10, 0.7);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid var(--ventriloque-light);
}

.stat-category h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.stat-category ul {
    list-style: none;
    padding: 0;
}

.stat-category li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(45, 90, 61, 0.3);
}

.stat-category li:last-child {
    border-bottom: none;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    padding: 10px;
    background: rgba(5, 8, 5, 0.6);
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(45, 90, 61, 0.5);
}

.stat-item.positive {
    color: #6aa66a;
    border-color: #4a8f4a;
    background: rgba(74, 143, 74, 0.2);
}

.stat-item.negative {
    color: #c97a5a;
    border-color: #a85a3a;
    background: rgba(168, 74, 43, 0.2);
}

.stat-item.neutral {
    color: #9aa69a;
    border-color: #6a7a6a;
    background: rgba(106, 122, 106, 0.15);
}

.stat-item.highlight {
    border: 2px solid var(--accent);
    background: rgba(45, 90, 61, 0.3);
    font-size: 1.1rem;
}

.resistance-list {
    margin-top: 15px;
}

.traits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.traits-grid span {
    padding: 8px;
    background: rgba(45, 90, 61, 0.2);
    border-radius: 4px;
    font-size: 0.95rem;
    border: 1px solid rgba(45, 90, 61, 0.4);
}

/* Cartes de talents */
.talent-card {
    background: rgba(10, 15, 10, 0.7);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid var(--ventriloque);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 90, 61, 0.4);
}

.talent-card:hover {
    background: rgba(10, 15, 10, 0.9);
    box-shadow: 0 5px 20px rgba(45, 90, 61, 0.5);
    transform: translateX(5px);
}

.talent-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.talent-card h4 {
    font-family: 'Cinzel', serif;
    color: var(--ventriloque-light);
    margin: 15px 0 10px;
    font-size: 1.1rem;
}

.talent-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.talent-card .subsection {
    background: rgba(45, 90, 61, 0.15);
    padding: 20px;
    margin: 15px 0;
    border-radius: 6px;
    border-left: 3px solid var(--ventriloque);
}

.talent-card ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.talent-card li {
    padding: 6px 0 6px 20px;
    position: relative;
}

.talent-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--ventriloque);
    font-weight: bold;
}

/* Grille d'origines */
.origin-grid {
    display: grid;
    gap: 35px;
}

.origin-card {
    background: rgba(10, 15, 10, 0.8);
    padding: 30px;
    border: 3px solid var(--ventriloque-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.origin-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(45, 90, 61, 0.5);
    transform: translateY(-2px);
}

.origin-card.selected {
    border-color: var(--accent);
    border-width: 4px;
    box-shadow: 0 8px 40px rgba(90, 143, 106, 0.6), 
                0 0 0 2px rgba(90, 143, 106, 0.3);
    background: rgba(45, 90, 61, 0.2);
}

.origin-card.selected::before {
    content: '✓ SÉLECTIONNÉ';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--shadow);
    padding: 5px 12px;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(90, 143, 106, 0.6);
}

/* Origines spécifiques */
.origin-card.village {
    border-color: #4a7a3a;
    background: linear-gradient(135deg, rgba(74, 122, 58, 0.12), rgba(10, 15, 10, 0.8));
}

.origin-card.cocon {
    border-color: #3a4a3a;
    background: linear-gradient(135deg, rgba(58, 74, 58, 0.12), rgba(10, 15, 10, 0.8));
}

.origin-card.clinique {
    border-color: #5a4a2a;
    background: linear-gradient(135deg, rgba(90, 74, 42, 0.12), rgba(10, 15, 10, 0.8));
}

.origin-card.tribu {
    border-color: #3d6a4d;
    background: linear-gradient(135deg, rgba(61, 106, 77, 0.12), rgba(10, 15, 10, 0.8));
}

.origin-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.7rem;
}

.origin-card h4 {
    font-family: 'Cinzel', serif;
    color: var(--ventriloque-light);
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.origin-card .subsection {
    background: rgba(45, 90, 61, 0.15);
    padding: 20px;
    margin: 15px 0;
    border-radius: 6px;
    border-left: 3px solid var(--ventriloque);
}

.origin-card ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.origin-card li {
    padding: 6px 0 6px 20px;
    position: relative;
}

.origin-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--ventriloque);
    font-weight: bold;
}

/* Liste de connaissances */
.knowledge-list {
    list-style: none;
    padding: 0;
}

.knowledge-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(45, 90, 61, 0.3);
    font-size: 1.05rem;
}

.knowledge-list li:last-child {
    border-bottom: none;
}

.knowledge-list strong {
    color: var(--accent);
}

.knowledge-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(45, 90, 61, 0.3);
}

.knowledge-item:last-child {
    border-bottom: none;
}

.knowledge-item h4,
.knowledge-item h5 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.knowledge-item h5 {
    font-size: 1.1rem;
    margin-top: 15px;
}

.knowledge-item p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Grille d'équipement */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.equipment-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(10, 15, 10, 0.7);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--ventriloque-light);
    transition: all 0.3s ease;
}

.equipment-item:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(45, 90, 61, 0.4);
}

.equipment-item .icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.equipment-item h4 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.equipment-item p {
    font-size: 0.95rem;
    color: var(--ink);
}

/* Sorts Spellcraft */
.spells-table {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.spell-card {
    background: rgba(10, 15, 10, 0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid var(--ventriloque-light);
}

.spell-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.6);
}

.spell-header {
    background: linear-gradient(135deg, var(--ventriloque), var(--ventriloque-dark));
    color: #d4d9d0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.spell-header h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    flex: 1 1 auto;
}

.spell-level {
    background: rgba(212, 217, 208, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.spell-cost {
    background: rgba(10, 31, 15, 0.5);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Crimson Text', serif;
}

.spell-body {
    padding: 25px;
}

.spell-body h4 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin: 15px 0 10px 0;
    font-size: 1.1rem;
}

.spell-body h4:first-child {
    margin-top: 0;
}

.spell-body p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.spell-body p:last-child {
    margin-bottom: 0;
}

/* Couleurs par niveau de sort - thème forêt */
.spell-card.level-1 .spell-header {
    background: linear-gradient(135deg, #2a4a2a, #1a3a1a);
}

.spell-card.level-2 .spell-header {
    background: linear-gradient(135deg, #3a5a3a, #2a4a2a);
}

.spell-card.level-3 .spell-header {
    background: linear-gradient(135deg, #4a6a4a, #3a5a3a);
}

.spell-card.level-4 .spell-header {
    background: linear-gradient(135deg, #5a7a5a, #4a6a4a);
}

.spell-card.level-5 .spell-header {
    background: linear-gradient(135deg, #6a8a6a, #5a7a5a);
}

.spell-card.level-1 {
    border-color: #2a4a2a;
}

.spell-card.level-2 {
    border-color: #3a5a3a;
}

.spell-card.level-3 {
    border-color: #4a6a4a;
}

.spell-card.level-4 {
    border-color: #5a7a5a;
}

.spell-card.level-5 {
    border-color: #6a8a6a;
}

/* Grille de compétences */
.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.competence-category {
    background: rgba(10, 15, 10, 0.7);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid var(--ventriloque-light);
}

.competence-category h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.competence-list {
    list-style: none;
    padding: 0;
}

.competence-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(45, 90, 61, 0.3);
    font-size: 1.05rem;
}

.competence-list li:last-child {
    border-bottom: none;
}

.competence-list strong {
    color: var(--accent);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
    z-index: 2;
}

.divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    margin: 0 auto 20px;
}

.footer p {
    font-size: 0.95rem;
    color: var(--accent-dark);
    letter-spacing: 1px;
}

/* Popup Maya Bella */
.maya-bella-trigger {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.3), rgba(29, 58, 45, 0.3));
    border: 2px solid var(--ventriloque);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    cursor: help;
    transition: all 0.3s ease;
}

.maya-bella-trigger:hover {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.5), rgba(29, 58, 45, 0.5));
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(90, 143, 106, 0.4);
}

.maya-bella-popup {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-height: 600px;
    background: rgba(5, 10, 5, 0.98);
    border: 3px solid var(--accent);
    border-radius: 12px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(90, 143, 106, 0.3),
        inset 0 1px 0 rgba(90, 143, 106, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    pointer-events: none;
}

.maya-bella-trigger:hover .maya-bella-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.popup-arrow {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--accent);
}

.popup-arrow::after {
    content: '';
    position: absolute;
    top: 3px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(5, 10, 5, 0.98);
}

.maya-bella-popup .popup-header {
    background: linear-gradient(135deg, var(--ventriloque-dark), var(--shadow-dark));
    padding: 15px 20px;
    border-bottom: 2px solid var(--ventriloque);
    border-radius: 8px 8px 0 0;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    letter-spacing: 1px;
}

.popup-scroll {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--ventriloque) rgba(10, 15, 10, 0.5);
}

.popup-scroll::-webkit-scrollbar {
    width: 8px;
}

.popup-scroll::-webkit-scrollbar-track {
    background: rgba(10, 15, 10, 0.5);
    border-radius: 4px;
}

.popup-scroll::-webkit-scrollbar-thumb {
    background: var(--ventriloque);
    border-radius: 4px;
}

.popup-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.popup-scroll p {
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
}

.popup-scroll p em {
    color: rgba(212, 217, 208, 0.7);
    font-style: italic;
}

.popup-scroll p:not(em) {
    color: var(--accent-dark);
}

/* Styles pour les dialogues de Bella */
.bella-dialogue {
    padding: 8px 0;
}

.bella-dialogue em {
    color: rgba(212, 217, 208, 0.6);
}

/* Styles pour le graphique */
.chart-container {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    padding: 20px;
    background: rgba(15, 25, 18, 0.8);
    border-radius: 12px;
    border: 2px solid var(--accent);
    box-shadow: inset 0 0 30px rgba(10, 31, 15, 0.5);
}

.chart-wrapper canvas {
    max-height: 400px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 80px 30px 40px;
    }

    .hero-image {
        flex: 0 0 auto;
        max-width: 350px;
    }

    .class-quote {
        border-left: none;
        padding-left: 0;
        border-top: 4px solid var(--ventriloque);
        padding-top: 15px;
    }

    .stats-grid,
    .equipment-grid,
    .competences-grid,
    .origin-grid {
        grid-template-columns: 1fr;
    }
    
    .maya-bella-popup {
        width: 90vw;
        max-width: 450px;
        left: 50%;
    }
    
    .maya-bella-trigger {
        margin-left: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .back-button {
        top: 10px;
        left: 10px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .hero-section {
        padding: 70px 20px 30px;
    }

    .hero-image {
        max-width: 280px;
    }

    .class-title {
        font-size: 2.2rem;
    }

    .class-quote {
        font-size: 1.1rem;
    }

    .container {
        padding: 30px 20px 60px;
    }

    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .content-box,
    .stat-category,
    .talent-card,
    .origin-card {
        padding: 20px;
    }

    .bonus-grid,
    .traits-grid {
        grid-template-columns: 1fr;
    }

    .spell-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .spell-header h3 {
        font-size: 1.2rem;
    }
    
    .maya-bella-trigger {
        display: block;
        margin: 10px 0 0 0;
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .maya-bella-popup {
        width: 95vw;
        left: 50%;
        max-height: 400px;
    }
    
    .popup-scroll {
        max-height: 300px;
    }
}